package com.example.mapper;

import com.example.pojo.Author;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AuthorMapper {

    @Select("select * from t_author where #{author} like concat(author,'%') and del_flag=0")
    @ResultMap("AuthorResult")
    List<Author> selectByAuthorRevContain(String author);
}
